#!/bin/bash
filename="result.csv"
for((size=650;size<=1300;size++))
do
	t=120
	if [ $size -gt 800 ] 
		then t=220
	fi
	if [ $size -gt 1000 ]
		then t=300
	fi
	if [ $size -gt 1100 ]
		then t=600
	fi
	for density in 1 2 5 20 50 100 1000
	do
		fn="${density}-${filename}"
		timeout $t ./smm-pp $size $density $fn
	done
done
